<!--
*Author：jxx
 *Contact：283591387@qq.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/reporttest/dbtest/ReportDbTest.js此处编写
 -->
<template>
    <div>
        <view-grid
                   ref="grid"
                   :columns="columns"
                   :detail="detail"
                   :editFormFields="editFormFields"
                   :editFormFileds="editFormFields"
                   :editFormOptions="editFormOptions"
                   :searchFormFields="searchFormFields"
                   :searchFormFileds="searchFormFields"
                   :searchFormOptions="searchFormOptions"
                   :table="table"
                   :extend="extend">
        </view-grid>
    </div>
</template>

<script>
    import extend from "@/extension/reporttest/dbtest/ReportDbTest.js";
    import ViewGrid from "@/components/basic/ViewGrid.vue";
    var vueParam = {
        components: {
            ViewGrid
        },
        data() {
            return {
                table: {
                    key: 'Order_Id',
                    footer: "Foots",
                    cnName: '报表库测试',
                    name: 'dbtest/ReportDbTest',
                    url: "/ReportDbTest/",
                    sortName: "CreateDate"
                },
                extend: extend,
                editFormFields: {"ReportTranNo":"","ReportSellNo":"","ReportQty":"","Remark":""},
                editFormOptions: [[{"title":"ReportTranNo","required":true,"field":"ReportTranNo"}],
                              [{"title":"ReportSellNo","required":true,"field":"ReportSellNo"}],
                              [{"title":"ReportQty","required":true,"field":"ReportQty","type":"number"}],
                              [{"title":"Remark","field":"Remark"}]],
                searchFormFields: {"ReportTranNo":"","ReportSellNo":"","ReportQty":""},
                searchFormOptions: [[{"title":"ReportTranNo","field":"ReportTranNo"},{"title":"ReportSellNo","field":"ReportSellNo"},{"title":"ReportQty","field":"ReportQty","type":"number"}]],
                columns: [{field:'Order_Id',title:'Order_Id',type:'guid',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'ReportTranNo',title:'ReportTranNo',type:'string',width:140,require:true,align:'left',sort:true},
                       {field:'ReportSellNo',title:'ReportSellNo',type:'string',width:140,require:true,align:'left'},
                       {field:'ReportQty',title:'ReportQty',type:'int',width:110,require:true,align:'left'},
                       {field:'Remark',title:'Remark',type:'string',width:120,align:'left'},
                       {field:'CreateID',title:'CreateID',type:'int',width:80,hidden:true,align:'left'},
                       {field:'Creator',title:'Creator',type:'string',width:130,align:'left'},
                       {field:'CreateDate',title:'CreateDate',type:'datetime',width:110,align:'left',sort:true},
                       {field:'ModifyID',title:'ModifyID',type:'int',width:80,hidden:true,align:'left'},
                       {field:'Modifier',title:'Modifier',type:'string',width:130,align:'left'},
                       {field:'ModifyDate',title:'ModifyDate',type:'datetime',width:110,align:'left',sort:true}],
                detail: {
                    cnName:"#detailCnName",
                    columns: [],
                    sortName: "",
                    key:""
                }
            };
        }
    };
    export default vueParam;
</script>
